package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TSettlement;
import com.tmeone.erpone.mapper.TSettlementMapper;
import com.tmeone.erpone.service.ITSettlementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TSettlementServiceImpl extends ServiceImpl<TSettlementMapper, TSettlement> implements ITSettlementService {
    @Autowired
    private TSettlementMapper tSettlementMapper;
    //分页
    @Override
    public IPage<TSettlement> pageTSettlement(IPage<TSettlement> page) {
        return tSettlementMapper.pageTSettlement(page);
    }
    //通过发货单号查询
    @Override
    public List<String> TSettlementByNum(String shippingNum) {
        return tSettlementMapper.TSettlementByNum(shippingNum);
    }

    @Override
    public IPage<TSettlement> getPageSettlement(IPage<TSettlement> page,String input1) {
        return tSettlementMapper.pageSettlement(page,input1);
    }

}
